<?php header("Content-type:text/html;charset=utf-8"); ?>
<html>
<head>
<?php $this->import('title');?>
</head>
<body>

<form action="admin.php?m=category&a=add" method="post">
<table>
<tr><th>分类名称</th><td><input type="text" name="cateName" /></td></tr>
<tr><th>URL参数</th><td><input type="text" name="urlName" /></td></tr>
<tr><th>分类描述</th><td><input type="text" name="desc" /></td></tr>
<tr><th>分类关键字</th><td><input type="text" name="keyWords" /></td></tr>
<tr><th>所属分类</th><td>
<select name="pid">
<option value="0">首级分类</option>
<?php foreach($this->cates as $k=>$v):?>
<option value="<?php echo $v['id']?>"<?php if($this->id == $v['id']) echo 'selected="selected"';?>><?php echo $v['cateName']?></option>
<?php endforeach;?>
</select>
</td></tr>
<tr><td>&nbsp;</td><td><input type="submit" value="增加" /></td></tr>
</table>
</form>

</body>
</html>